package cn.hls.entity.vo;

 
/**
 *@fileName: ExtTree.java
 *@package: cn.christ.entity.vo
 *@Description:  菜单树实体实体类
 *@author: yinghui.zhang
 *@email: uuhui@163.com
 *@date: 2015-7-6
 */
public class ExtTree {
	// 菜单名称
	private String text;
	// 是否存在叶子节点
	private Boolean leaf=true;
	// 编号
	private  Long id;
	// 父级编号
	private Long parentId;
	// 代码
	private String viewCode;

	public ExtTree() {
	}
	
	public ExtTree(String text,Long id){
		this.text=text;
		this.id=id;
	}

	public ExtTree(String text, Long id, Boolean leaf) {
		this.text = text;
		this.id = id;
		this.leaf = leaf;
	}

	public ExtTree(String text, String viewCode, Boolean leaf) {
		this.text = text;
		this.viewCode = viewCode;
		this.leaf = leaf;
	}

	public ExtTree(String text, Long id, Boolean leaf, Long parentId) {
		this.text = text;
		this.id = id;
		this.leaf = leaf;
		this.parentId = parentId;
	}

	public ExtTree(String text, Long id, String viewCode, Boolean leaf) {
		this.text = text;
		this.id = id;
		this.leaf = leaf;
		this.viewCode = viewCode;
	}

	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Boolean getLeaf() {
		return this.leaf;
	}

	public void setLeaf(Boolean leaf) {
		this.leaf = leaf;
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getParentId() {
		return this.parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getViewCode() {
		return this.viewCode;
	}

	public void setViewCode(String viewCode) {
		this.viewCode = viewCode;
	}

	@Override
	public String toString() {
		return "id: " + id + " text: " + text + " viewCode: " + viewCode + " isLeaf: " + leaf;
	}
}
